package com.yewen.websocket.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname SendToOneMessage
 * @Description 在已经建立连接的基础之上，学生/导生发送信息给导生/学生。
 * @Date 2022/3/25 9:00
 * @Created by TaoVh
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendToOneMessage implements Message{
    public static final String TYPE = "SEND_TO_ONE_MESSAGE";
    /*消息内容*/
    private String content;
    /*消息id*/
    private String msgID;
    /*目标用户*/
    private String toUser;
    /*源用户，便于前端分辨*/
    private String fromUser;
    /*token*/
    private String token;
}
